	var Money={
		cnums:["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],
		cnyunits:["角","分"],
		grees:["圆","拾","佰","仟","万","拾","佰","仟","亿","十亿"],
		toUpper:function(num){ 
			var upperLast='';
			n = num; 
			var dei = n.indexOf('.');
			var befor;
			if(dei>0){
				var last = n.substring(dei+1);
				var lasts = last.split('');
				for(var i =0;i<lasts.length;i++){
						upperLast=upperLast+this.converCnums(lasts[i])+this.cnyunits[i]
				};
				befor = n.substring(0,dei);
			}else{
				befor = n;
			}
			var befors = befor.split('');
			var gree = this.getGreens(befors.length);
			//alert(gree);
			var upperBefor='';
			for(var i=0;i<befors.length;i++){
				upperBefor = upperBefor+this.converCnums(befors[i])+gree[i];
			}
			return upperBefor+upperLast
		},
		converCnums:function(num){
			for(var i =0;i<this.cnums.length;i++){
				if(i==num){
					return this.cnums[i];
				}
			}
		},
		getGreens:function(length){
			var grees2 = [];
			var len = this.grees.length;
			for(var i=0;i<length;i++){
				var le = length-i-1;
				grees2[i]=this.grees[le]
			}
			return grees2;
		}
	}